package cn.v2tila.rsosa.management.jpa;

import cn.v2tila.rsosa.management.entity.StudentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author v2tila on 22:53 2019/2/24
 */

public interface StudentJPA extends JpaRepository<StudentEntity, Integer>
        , JpaSpecificationExecutor<StudentEntity> {
    boolean existsBySchoolNoAndNameAndNoAndPassword(String schoolNo, String name,
                                                    String no, String password);

    StudentEntity findByNo(String no);

    StudentEntity findByUniqueId(String uniqueId);

    StudentEntity findBySchoolNoAndNo(String schoolNo, String no);

}
